package org.weishe.fof;

import org.apache.hadoop.io.Text;

public class FOF extends Text {
	
	public FOF(){
		
	}
	
	public FOF(String f1,String f2){
		super(fof(f1,f2));
	}

	public static String fof(String f1,String f2){
		
		int r=f1.compareTo(f2);
		if(r<0){
			return f1+"\t"+f2;
		}else if(r>0){
			return f2+"\t"+f1;
		}
		
		return "";
	}
}
